#include <eikstart.h>
/*
 * Word.h
 *
 *  Created on: Jun 24, 2010
 *      Author: Administrator
 */

#ifndef WORD_H_
#define WORD_H_
//#pragma pack(push,1)

class KeyWord
{
public:
	TFixedArray<TText, 32> Keyword;	// wchar_t
	int		MeaningOffset;
	int		MeaningLength;
};

struct PrimaryIndex
{
	// First char of word
	TText FirstChar;

	// Offset of Secondary Index System of this FirstChar
	int		Offset;

	// Length of this segment
	int		Length;

	PrimaryIndex()
	{
		Offset = -1;	// hasn't point to anywhere
		Length = 0;
	}
};

struct SecondaryIndex
{
	// Two First character of word, last for '\0'
	TFixedArray<TText, 3> TwoFirstChar;
	
	// Offset of Word System which have word begin with TwoFirstChar
	int		Offset;

	int		Length;
	SecondaryIndex()
	{
		Offset = -1;
		Length = 0;
	}
};

//#pragma pack(pop)

#endif /* WORD_H_ */
